package com.atm.atmsys.Service;

import com.atm.atmsys.Service.Imp.TransactionServiceImp;
import com.atm.atmsys.dto.TransactionPageByCardNo;
import com.atm.atmsys.dto.TransactionPageQueryDTO;
import com.atm.atmsys.dto.TransactionRecordDTO;
import com.atm.atmsys.entity.PageResult;
import org.apache.ibatis.transaction.Transaction;

public interface TransactionService {
    // 添加交易记录并更新数据库
    void addTransaction(TransactionRecordDTO transactionRecordDTO);

    // 添加交易记录，不更新数据库
    void addTransactionWithoutChangeMysql(TransactionRecordDTO transactionRecordDTO);

    // 删除交易记录
    void deleteTransaction(int id);


    // 分页查询交易记录
    PageResult pageQuery(TransactionPageQueryDTO transactionPageQueryDTO);


    // 分页查询交易记录，根据卡号

    PageResult pageByCardNo(TransactionPageByCardNo transactionPageByCardNo);
}
